//
//  Global.h
//  HJBIPAD
//
//  Created by LiYinDi on 14-11-16.
//  Copyright (c) 2014年 RuiBen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
@interface Global : NSObject

+(void)showTextHud:(NSString*)message view:(UIView *)view;
+(void)showIndeterminateHud:(NSString*)text delay:(int)delay view:(UIView *)view;
+(void)hideProgressHUDInternal:(UIView *)view;

+(void)showTextHudSub:(NSString*)message view:(UIView *)view;
+(void)showIndeterminateHudSub:(NSString*)text delay:(int)delay view:(UIView *)view;

+ (NSDate *)dateByAddingComponents:(NSDate *)selectedDate
                               day:(NSInteger)days;
+ (NSString *)stringFromChangeDate:(NSDate *)date;
+(NSString *)getLoginToken;
+(void)setLoginToken:(NSString *)token;

+(NSString *)getScanResultStr;
+(void)setScanResultStr:(NSString *)resultStr;

+(NSString *)getSelectedGoodType;
+(void)setSelectedGoodType:(NSString *)typeStr;

//融云token
+(NSString *)getRongYunToken;
+(void)setRongYunToken:(NSString *)ryToken;

//转账的
+(NSString *)getAccountCode;
+(void)setAccountCode:(NSString *)accountCode;

+(NSString *)getAccountName;
+(void)setAccountName:(NSString *)accountName;

+(NSString *)floatConvertPercentile:(float)floatValue;

+(NSString *)getPhoneNumber;
+(void)setPhoneNumber:(NSString *)phoneNum;
+ (NSString *)theStartOfMonth:(NSDate *)selectedDate;
+ (NSString *)theEndOfMonth:(NSDate *)selectedDate;
+(UIColor *)parseColor:(NSString *)hexColor;
@end
